/*
 * @Author: zhangyun
 * @Date: 2021-04-25 10:51:28
 * @LastEditors: zhangyun
 * @LastEditTime: 2021-04-25 10:55:03
 * @Desc: 
 */
export function resetForm(target: any): void {
  Object.keys(target).forEach((key) => {
    switch (typeof target[key]) {
      case 'string':
        target[key] = ''
        break
      case 'boolean':
        target[key] = false
        break
      case 'object':
        target[key] = null
        break
      case 'number':
        target[key] = 0
        break
    }
  })
}